package com.llly.client;

import com.llly.client.impl.BackstageProductFeignClientimpl;
import com.llly.pojo.Easybuy_product;
import com.llly.pojo.Easybuy_product_category;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import java.util.List;
import java.util.Map;

@Component
@FeignClient(name = "provider9091",fallback = BackstageProductFeignClientimpl.class)
public interface BackstageProductFeignClient {
    @RequestMapping("/Allproductcategory")
    public Map<String,Object> Allproduct_category(@RequestParam Integer PageIndex);
    @RequestMapping("/Alleasybuy_product")
    public Map<String,Object> Alleasybuy_product(@RequestParam Integer PageIndex);
    @RequestMapping("/deleteproductcategory")
    public int deleteproductcategory(@RequestParam Integer id);
    @RequestMapping("/deleteproduct")
    public int deleteproduct(@RequestParam Integer id);
    @RequestMapping("/idproduct")
    public List<Easybuy_product> idproduct(@RequestParam Integer id);
    @RequestMapping("/addproductcategory")
    public int addproductcategory(@RequestParam String name,@RequestParam Integer type,@RequestParam Integer parentId);
    @RequestMapping("/Allproduct_category2")
    public List<Map<String, Object>> Allproduct_category2();
    @RequestMapping("/updateproduct")
    public int updateproduct(@RequestBody Easybuy_product ep);
    @RequestMapping("/ideasybuy_product")
    public int ideasybuy_product(@RequestParam Integer id);
}
